<span class="swith-box" (click)="changeItem()">
  <span #span1 [class.switch-active]="choosed === span1Value">{{span1Text}}</span>
  <span #span2 [class.switch-active]="choosed === span2Value">{{span2Text}}</span>
  <button #button [style.width]="buttonWidth"></button>
</span>